home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / ISp Sample / Source / ShellWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.0 KB  |  94 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ShellWindow.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (BWS)    Brent Schorsch
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <SP1>      7/1/99    BWS        first checked in
  25. */
  26.  
  27. #ifndef __SHELLWINDOW__
  28. #define __SHELLWINDOW__
  29.  
  30. //•    ————————————————————————————————————————    Includes
  31.  
  32. #ifndef __CONTROLS__
  33. #include <Controls.h>
  34. #endif
  35.  
  36. #ifndef __QUICKDRAW__
  37. #include <QuickDraw.h>
  38. #endif
  39.  
  40. //•    ————————————————————————————————————————    Public Definitions
  41. //•    ————————————————————————————————————————    Public Types
  42.  
  43. class ShellWindow
  44. {
  45. protected:
  46.  
  47.     WindowPtr        window;
  48.     ControlHandle    rootControl;
  49.  
  50. public:
  51.  
  52.     ShellWindow();
  53.     ~ShellWindow();
  54.  
  55.     void        Show(void);
  56.     void        Hide(void);
  57.     void        MakeCurrentPort(void);
  58.     void        SetTitle(const Str255 inTitle);
  59.     void        SetWidth(const UInt32 inWidth);
  60.     void        SetHeight(const UInt32 inHeight);
  61.     short        Width(void);
  62.     short        Height(void);
  63.     void        MoveTo(const SInt32 inH, const SInt32 inV);
  64.     GDHandle    MostOnWhichMonitor(void);
  65.  
  66.     virtual void    Activate(const Boolean inActivate);
  67.     virtual void    Update(void);
  68.     virtual void    Select(void);
  69.     virtual OSErr    Click(const Point inWhere, const short inModifiers);
  70.     virtual OSErr    Key(const UInt8 inChar, const UInt8 inKey, const short inModifiers);
  71.     virtual OSErr    Grow(const Point inWhere);
  72.     virtual OSErr    Zoom(const short inZoomDir);
  73.     virtual OSErr    Close(void);
  74.     virtual void    Idle(void);
  75.     virtual Boolean    Menu(const UInt32 inMenuCommand, const short inModifiers);
  76.     virtual void    Help(const Point inWhere);
  77.     virtual Boolean    Drag(const Point inWhere, const short inModifiers);
  78.     virtual void    Suspend(void);
  79.     virtual void    Resume(void);
  80. };
  81.  
  82. //•    ————————————————————————————————————————    Public Variables
  83. //•    ————————————————————————————————————————    Public Functions
  84.  
  85. #ifdef __cplusplus
  86. extern "C" {
  87. #endif
  88.  
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92.  
  93. #endif
  94.